package org.csu.mypetstore.persistence;


import org.csu.mypetstore.domain.Cart;
import org.csu.mypetstore.domain.CartItem;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CartMapper {
    void insertCart(String userid, String itemid);
    void updateCart(String userid, String itemid, int quantity);
    void removeCart(String userid, String itemid);
    void delete(String userid);
    List<CartItem> getCart(String userid);
}
